package com.seashop.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author moredln
 * @desc 谷歌翻译请求参数
 * @date 2020-08-11 11:30
 */
@Data
@ApiModel(value = "谷歌翻译请求参数")
public class GoogleTransRequestParam implements Serializable {

    private static final long serialVersionUID = 1L;

    public GoogleTransRequestParam(List<String> texts, String fromLanguage, String toLanguage) {
        this.texts = texts;
        this.fromLanguage = fromLanguage;
        this.toLanguage = toLanguage;
    }

    @ApiModelProperty(value = "多条内容")
    private List<String> texts;

    @ApiModelProperty(value = "语言来源")
    private String fromLanguage;

    @ApiModelProperty(value = "翻译语言")
    private String toLanguage;

}
